package com.nb.entity;

import java.time.LocalDateTime;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.Data;

@Data
@Table(value = "sys_dept",dataSource = "primaryDS")
public class Dept {

    @Id(keyType = KeyType.Auto)
    @Column("id")
    private Long id;
    @Column("name")
    private String name;
    @Column("parent_id")
    private Long parentId;
    @Column("level")
    private String level;
    @Column("sort")
    private Integer sort;
    @Column("is_delete")
    private Integer isDelete;
    @Column("created_by")
    private String createdBy;
    @Column("updated_by")
    private String updatedBy;
    @Column("created_time")
    private LocalDateTime createdTime;
    @Column("updated_time")
    private LocalDateTime updatedTime;
}
